package com.zhijian.medical.entity.po;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 菜单-按钮关系表
 *
 * @author Auto Generator
 * @date 2022-01-23 15:38:41
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Api(tags = "菜单-按钮关系表")
public class MenuButton {
    /**
     * 主键id
     */
    @ApiModelProperty("主键id")
    @NotNull(message = "主键id不能为空")
    private Long id;

    /**
     * 菜单id
     */
    @ApiModelProperty("菜单id")
    @NotNull(message = "菜单id不能为空")
    private Long menuId;

    /**
     * 按钮id
     */
    @ApiModelProperty("按钮id")
    @NotNull(message = "按钮id不能为空")
    private Long buttonId;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    private Date updateTime;
}